package com.ssm.xm.model;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
public class ThInfo implements Serializable {
    private Integer thId; //教师ID

    private String thName;//教师姓名

    private String thSex;//教师性别

    private Integer thAge;//教师年龄

    private String thNativePlace;//教师籍贯

    private String thIdcard;//教师身份证号

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date thBrithday;//出生日期

    private String thOfficePhone;//办公电话

    private String thMobilePhone;//移动电话

    private String thEamil;//电子邮件

    private String thAddr;//家庭住址

    private String thQq;//QQ号码
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date thEntryTime;//入职时间

    private String thEductionLevel;//教育水平

    private String thRemark;//备注信息

    private String thState;//状态

    private String userNumber;//账号

    private String userPassowrd;//密码

    private static final long serialVersionUID = 1L;

    public Integer getThId() {
        return thId;
    }

    public void setThId(Integer thId) {
        this.thId = thId;
    }

    public String getThName() {
        return thName;
    }

    public void setThName(String thName) {
        this.thName = thName == null ? null : thName.trim();
    }

    public String getThSex() {
        return thSex;
    }

    public void setThSex(String thSex) {
        this.thSex = thSex == null ? null : thSex.trim();
    }

    public Integer getThAge() {
        return thAge;
    }

    public void setThAge(Integer thAge) {
        this.thAge = thAge;
    }

    public String getThNativePlace() {
        return thNativePlace;
    }

    public void setThNativePlace(String thNativePlace) {
        this.thNativePlace = thNativePlace == null ? null : thNativePlace.trim();
    }

    public String getThIdcard() {
        return thIdcard;
    }

    public void setThIdcard(String thIdcard) {
        this.thIdcard = thIdcard == null ? null : thIdcard.trim();
    }

    public Date getThBrithday() {
        return thBrithday;
    }

    public void setThBrithday(Date thBrithday) {
        this.thBrithday = thBrithday;
    }

    public String getThOfficePhone() {
        return thOfficePhone;
    }

    public void setThOfficePhone(String thOfficePhone) {
        this.thOfficePhone = thOfficePhone == null ? null : thOfficePhone.trim();
    }

    public String getThMobilePhone() {
        return thMobilePhone;
    }

    public void setThMobilePhone(String thMobilePhone) {
        this.thMobilePhone = thMobilePhone == null ? null : thMobilePhone.trim();
    }

    public String getThEamil() {
        return thEamil;
    }

    public void setThEamil(String thEamil) {
        this.thEamil = thEamil == null ? null : thEamil.trim();
    }

    public String getThAddr() {
        return thAddr;
    }

    public void setThAddr(String thAddr) {
        this.thAddr = thAddr == null ? null : thAddr.trim();
    }

    public String getThQq() {
        return thQq;
    }

    public void setThQq(String thQq) {
        this.thQq = thQq == null ? null : thQq.trim();
    }

    public Date getThEntryTime() {
        return thEntryTime;
    }

    public void setThEntryTime(Date thEntryTime) {
        this.thEntryTime = thEntryTime;
    }

    public String getThEductionLevel() {
        return thEductionLevel;
    }

    public void setThEductionLevel(String thEductionLevel) {
        this.thEductionLevel = thEductionLevel == null ? null : thEductionLevel.trim();
    }

    public String getThRemark() {
        return thRemark;
    }

    public void setThRemark(String thRemark) {
        this.thRemark = thRemark == null ? null : thRemark.trim();
    }

    public String getThState() {
        return thState;
    }

    public void setThState(String thState) {
        this.thState = thState == null ? null : thState.trim();
    }

    public String getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(String userNumber) {
        this.userNumber = userNumber == null ? null : userNumber.trim();
    }

    public String getUserPassowrd() {
        return userPassowrd;
    }

    public void setUserPassowrd(String userPassowrd) {
        this.userPassowrd = userPassowrd == null ? null : userPassowrd.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", thId=").append(thId);
        sb.append(", thName=").append(thName);
        sb.append(", thSex=").append(thSex);
        sb.append(", thAge=").append(thAge);
        sb.append(", thNativePlace=").append(thNativePlace);
        sb.append(", thIdcard=").append(thIdcard);
        sb.append(", thBrithday=").append(thBrithday);
        sb.append(", thOfficePhone=").append(thOfficePhone);
        sb.append(", thMobilePhone=").append(thMobilePhone);
        sb.append(", thEamil=").append(thEamil);
        sb.append(", thAddr=").append(thAddr);
        sb.append(", thQq=").append(thQq);
        sb.append(", thEntryTime=").append(thEntryTime);
        sb.append(", thEductionLevel=").append(thEductionLevel);
        sb.append(", thRemark=").append(thRemark);
        sb.append(", thState=").append(thState);
        sb.append(", userNumber=").append(userNumber);
        sb.append(", userPassowrd=").append(userPassowrd);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}